package com.huaxiafinance.management.model;

/**
 * 存储图形验证码
 *
 */
public class CaptchaSession {
	
	private String key;
	
	private Integer times;
	
	private String code;
	
	public CaptchaSession(){}
	
	public CaptchaSession(String key, String code){
		this.key = key;
		this.times = 0;
		this.code = code;
	}
	
	public void addTimes(){
		this.times = this.times + 1;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Integer getTimes() {
		return times;
	}

	public void setTimes(Integer times) {
		this.times = times;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
